from flask import Blueprint, jsonify, request
from app.err_no import errno_no
from loguru import logger
import json
import traceback

blueprint = Blueprint('stats_manage', __name__, url_prefix='/api/stats')


@blueprint.route('/v1/manage', methods=['POST'])
def stats_manage():
    try:
        j_data = json.loads(request.data)
        return jsonify(errno_no.OK.data(None))
    except Exception as e:
        logger.error(f'errMsg:{str(e)},traceback={traceback.format_exc()}')
        return jsonify(errno_no.ErrServerRuntime.data(None))